package ijij41.togetherTrain.participate;

import ijij41.togetherTrain.R;
import ijij41.togetherTrain.common.AbstractSearchTrainActivity;
import ijij41.togetherTrain.recruit.TrainListRecruitActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class SearchTrainParticipateActivity extends AbstractSearchTrainActivity {

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setLabelTitle("참여");
	}
	
	
	@Override
	protected void search_action() {
		
		Intent trainListActivity = new Intent(SearchTrainParticipateActivity.this,
		// SearchTrainListParticipateActivity.class);
				TrainListParticipateActivity.class);

		/*
		 * trainListActivity.putExtra("time","10:00");
		 * trainListActivity.putExtra("startStation","서울");
		 * trainListActivity.putExtra("endStation","부산");
		 * trainListActivity.putExtra("numPerson","1");
		 */

		trainListActivity.putExtra("date", search_date);
		trainListActivity.putExtra("time", search_time);
		trainListActivity.putExtra("startStation", search_startStation);
		trainListActivity.putExtra("endStation", search_endStation);
		trainListActivity.putExtra("numPerson", search_person);

		startActivity(trainListActivity);
		
	}
	
	
	
	

//	public void onCreate(Bundle savedInstanceState) {
//		super.onCreate(savedInstanceState);
//
//		initComponent();
//	}
//
//	private void initComponent() {
//
//		TextView tv_title = (TextView) findViewById(R.id.tv_title);
//		tv_title.setText("aaaa");
//
//	}

}
